package edu.ustc.iproject.action.admin;



import com.opensymphony.xwork2.ActionSupport;

import edu.ustc.iproject.bean.Admin;
import edu.ustc.iproject.service.AdminService;

public class updateAdmin2 extends ActionSupport {

	private Admin admin;
	private AdminService service;
	
	public Admin getAdmin() {
		return admin;
	}
	public void setAdmin(Admin student) {
		this.admin = student;
	}
	public AdminService getService() {
		return service;
	}
	public void setService(AdminService service) {
		this.service = service;
	}
	
	
	@Override
	public String execute() throws Exception
	{
		System.out.println("updateadmin2-1 Stu_id():"+admin.getId());
		
		this.service.updateAdmin(admin);
		
		System.out.println("updateadmin2-2");
		
		return SUCCESS;
	}
	
	
}
